//
//  LBTransitionAnimationProtocol.h
//  TEXT
//
//  Created by mac on 2025/3/30.
//  Copyright © 2025 刘博. All rights reserved.
//

#ifndef LBTransitionAnimationProtocol_h
#define LBTransitionAnimationProtocol_h
#import <UIKit/UIKit.h>

typedef void(^LIVDetailTransitionAnimationCompletion)(BOOL finished, BOOL isCancel, id<UIViewControllerContextTransitioning> transitionContext);

@protocol LBTransitionAnimationProtocol <NSObject>

- (void)prepareTransitionWithTransitionContext:(id<UIViewControllerContextTransitioning>)transitionContext;
- (BOOL)updateTransitionWithPercentComplete:(CGFloat)percentComplete translation:(CGPoint)translation; // 更新当前动画进度，返回 YES 代表需要马上结束转场
- (void)finishTransitionIsCancel:(BOOL)isCancel completion:(LIVDetailTransitionAnimationCompletion)completion;

- (NSTimeInterval)transitionDuration;

@end


#endif /* LBTransitionAnimationProtocol_h */
